package sharping.appilog.fragment;

import android.os.Bundle;

import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.SupportMapFragment;
import com.google.android.gms.maps.model.CameraPosition;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.MarkerOptions;

public class ShopLocationMap extends SupportMapFragment {

	GoogleMap mGoogleMap;
	LatLng loc = new LatLng(35.1429750, 129.0340910);
	CameraPosition cp = new CameraPosition.Builder().target(loc).zoom(15)
			.build();
	
	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
		
		mGoogleMap = getMap();
		
		mGoogleMap.moveCamera(CameraUpdateFactory.newCameraPosition(cp));
		MarkerOptions marker = new MarkerOptions().position(loc);
		marker.title("APPiLOG");
		mGoogleMap.addMarker(marker).showInfoWindow();
		
	}
}
